<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@include file="link.jsp" %>
<%@include file="link.jsp" %>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加话题</title>
</head>
<style>
    table {
        border-collapse: separate;
        border-spacing: 15px 30px;
    }
</style>
<body>
<div style="color: blue">
    >添加话题
</div>
<hr>
<form action="${pageContext.request.contextPath}/title/add" method="post">
    <input type="hidden" name="uid" value="${sessionScope.loginUser.uid}">
    <table>
        <tr>
            <td>标题</td>
            <td><input type="text" style="height: 40px" name="tname" placeholder="只支持文本！！！"></td>
        </tr>
        <tr>
            <td>内容</td>
            <td>
                <textarea rows="4px" cols="70px" name="tcontent"></textarea>
            </td>
        </tr>
        <tr>
            <td><input type="submit" value="提交" style="height: 40px"></td>
            <td><input type="reset" value="重置" style="height: 40px"> &nbsp;&nbsp;&nbsp;&nbsp;

                <a href="${pageContext.request.contextPath}/index.jsp">返回主页</a></td>
        </tr>
    </table>
</form>

</body>
</html>